package com.visionblue.business.ship

import com.visionblue.business.ship.modbus.UltraSonicInfoParser
import com.visionblue.business.ship.modbus.utilities.floatInverse
import com.visionblue.business.ship.util.FormatUtils
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun floatTest() {
        println(FormatUtils.format3Decimal(1.0))
    }

    @Test
    fun longTest() {
        "00000038".withIndex().forEach {
            println(it.value)
        }
    }
}
